package com.hxl.linuxfilemanager.controller;

import com.hxl.linuxfilemanager.anno.ExcludeInterceptor;
import com.hxl.linuxfilemanager.config.LinuxPropertiesConfig;
import com.hxl.linuxfilemanager.service.impl.UserServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class UserPageController {
    private Logger logger = LoggerFactory.getLogger(UserPageController.class);
    @Autowired
    LinuxPropertiesConfig linuxPropertiesConfig;

    @Autowired
    UserServiceImpl userService;


    /**
     * 首页
     * @return
     */
    @GetMapping("/")
    public String index(){

        return "index";
    }

    /**
     * 收藏页
     * @return
     */
    @GetMapping("/mark")
    public String mark(){
        return "mark";
    }

    /**
     * 用户登录，排除拦截
     * @return
     */

    @ExcludeInterceptor
    @GetMapping("/login")
    public String login(){
        return "login";
    }


}
